Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
GitHub Issue: #133
What does this Pull Request do?
Changes the way the EDTF formatter outputs dates with Xs in them. Previously there were several dates that would not display correctly, as noted in the issue above.
What's new?
With this PR, they will now be labelled as unknown dates instead of unspecified dates
Also changed wording of years to better represent that they refer to a year in the decade, century, millennium, rather than the whole decade, century or millennium.
For middle endian dates, separated by spaces, and with the month spelled out (eg. January 1, 1999), this also adds a lot of extra formatting to write those unknown dates out in a more verbose manner that should make sense to site users who don't have archival backgrounds. Also, should not be ambiguous with regard to the difference between 190X and 19XX as it will state if it is a century or a decade.
The output with this PR should now look like this:
How should this be tested?
Add some dates with Xs in them. Test the EDTF formatter with and without this PR to see the difference.
Additional Notes:
N/A
Interested parties
@Islandora/committers